""" 定义元组使用() """
dimensions = (200,50)
print(dimensions[0])
print(dimensions[1])


""" 遍历元组 """
dimensions = (200,50)
for dimension in dimensions:
    print(dimension)


""" 修改元组：不能修改元组的元素，但可以给存储元组的变量赋值 """
dimensions = (200,50)
print("Original dimensions:")
for dimension in dimensions:
    print(dimension)

dimensions = (400,100)
print("\nModified dimensions:")
for dimension in dimensions:
    print(dimension)
